package com.example.govdata.repo;

import com.example.govdata.dto.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface InitMapper {

    void addUsers(List<User> memberList, String groupId);
    User getUser(String userId);
    void updateUserAgreeGroupFlg(String userId);
    void updateUserDataEntryFlag(String userId);

    void addGroup(Group group);
    List<Group> getGroups(String groupName, String status);
    Group getGroupById(String groupId);
    void updateGroupStatus(Group group);
    void updateGroupKey(Group group);
    List<Group> getGroupsByUserId(String userId);

    void addCustomData(CustomData customData);
    List<CustomDataItem> getCustomDataItem(String groupId);

    void addCustomDataSum(List<CustomDataItem> customDataItems, String groupId);
    void deleteCustomDataSum(String groupId);
    List<CustomDataItem> getCustomDataSum(String groupId);
}
